import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';
const moduleName = 'sample_manage';

const routes: Array<RouteRecordRaw> = [
  {
    path: moduleName,
    name: moduleName,
    component: RouterView,
    meta: {
      title: '样本登记',
      icon: 'icon-dengji',
    },
    children: [
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/register/index.vue'),
        meta: {
          title: '样本登记',
          keepAlive: false,
        },
      },
      {
        path: 'import_Information',
        name: 'import_Information',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/import_Information/index.vue'),
        meta: {
          title: '样本导入',
          keepAlive: false,
        },
      },
      {
        path: 'take_notes',
        name: 'take_notes',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/takeNotes/index.vue'),
        meta: {
          title: '登记记录',
          keepAlive: false,
        },
      },
      {
        path: 'registration_sample',
        name: 'registration_sample',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/registration_sample/index.vue'),
        meta: {
          title: '已登记样本',
          keepAlive: false,
        },
      },
      {
        path: 'templateManagement',
        name: 'templateManagement',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/template-management/template-management.vue'),
        meta: {
          title: '样本模板',
          keepAlive: false,
        },
      },
      {
        path: 'fieldManagement',
        name: 'fieldManagement',
        component: () => import('../pages/field-management/field-management.vue'),
        meta: {
          title: '字段管理',
        },
      },
      {
        path: 'sampleTypeManagement',
        name: 'sampleTypeManagement',
        component: () => import(/* webpackChunkName: "env_abnormal" */ '../pages/sample-type-management/sample-type-management.vue'),
        meta: {
          title: '样本类型管理',
          keepAlive: false,
        },
      },
    ],
  },
];

export default routes;
